Repository navigation
UOD-421: Update README and remove legacy hCaptcha, Castle and Temu request types - #57
Merged
Merged
Conversation
The table listed request classes that do not exist in the package and missed several supported ones. Cross-checked every class against the actual exports of capmonstercloudclient.requests and the API task list. - Remove non-existent classes: RecaptchaV2EnterpriseProxylessRequest, GeeTestProxylessRequest / GeeTestRequest, ImpervaCustomTaskProxylessRequest, BinanceTaskProxylessRequest - Use real exported names: GeetestRequest, RecaptchaV2EnterpriseRequest, ImpervaCustomTaskRequest, BinanceTaskRequest - Document optional minScore (0.1-0.9) on RecaptchaV2EnterpriseRequest - Add missing supported rows: reCAPTCHA v3 Enterprise, FunCaptcha, RecognitionComplexImageTaskRequest and a custom anti-bot tasks row (Tspd, Hunt, Friendly, TenDi, Basilisk, Alibaba, Altcha, MTCaptcha, Yidun, Prosopo) - hCaptcha, Castle and Temu request classes are not listed: those task types are absent from the official API task list
Client configuration and balance checking were implemented but not described anywhere in the README. - Add Quick Start example 3: checking the account balance with get_balance() - Add a Client Configuration section describing every ClientOptions field: api_key, service_url, client_timeout, default_soft_id and client_proxy (ClientProxyInfo; http/https for the API connection, task proxies are set per request object)
Exceptions and polling behaviour were implemented but not described in the README. - Add an Error Handling section: every exception raised by the client (BaseError subclasses, http.client.HTTPException, builtin TimeoutError), the situation that triggers each one and a try/except example - Describe automatic getTaskResult polling with per-type settings: delay before the first request, polling interval and maximum waiting time (e.g. up to 180 s for reCAPTCHA tasks, 10 s for image-to-text); unsolved tasks are not charged
The class exists in the package but the complex image row of the supported types table did not list it (the Node.js README already does).
These task types are absent from the official API task list and the team approved removing them. - Delete the HcaptchaRequest, HcaptchaComplexImageTaskRequest, CastleCustomTaskRequest and TemuCustomTaskRequest modules with their tests and examples - Drop the types from the solve_captcha / _solve unions, the _instance_config table and the REQUESTS exports list - Delete getHcaptchaTimeouts, getCastleTimeouts and getTemuTimeouts - Remove the HCaptcha case from requests_generation_test Note: removing public classes is a breaking change for package consumers. The version is intentionally left untouched here; the version bump and release are a separate team decision.
The ready getTaskResult response now exposes the price of the solved task; solve_captcha merges it into the returned dictionary. - Show the cost field in the Quick Start example - Note the USD price of a solution in the polling and timeouts section
djaga-ru
requested review from
DZaznobin93 and
evgeniykornev
and removed request for
DZaznobin93 and
evgeniykornev
November 19, 2026 16:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the Python SDK README for UOD-421 and removes legacy request types. Covers the supported captcha types table, client configuration, error handling and polling, and the solution cost.
1. Supported captcha types table - README.md
RecaptchaV2EnterpriseProxylessRequest,GeeTestProxylessRequest/GeeTestRequest,ImpervaCustomTaskProxylessRequest,BinanceTaskProxylessRequestminScore(0.1-0.9) on reCAPTCHA v2 Enterprise; adds reCAPTCHA v3 Enterprise, FunCaptcha, custom anti-bot tasks andFunCaptchaComplexImageTaskRequest2. Client configuration and balance - README.md
api_key,service_url,client_timeout,default_soft_id,client_proxywith defaults taken from the codeget_balance()3. Error handling and polling - README.md
TimeoutErrorand per-type polling timeouts4. Legacy request types removal - capmonstercloud_client/, test/, examples/
5. Solution cost - README.md
costfield merged into the solved dictionary (USD)Commits:
Stats: 16 files changed, 83 insertions(+), 877 deletions(-).